 function menu(){
	var $modal = $('#memu-modal');
	/** 控制memu 图标自适应屏幕大小**/
	$(".am-table img").attr("width",$(window).width()/7);
	$(".am-table img").attr("height",$(window).width()/7);
	/** 控制memu div 能完全包容所有图标**/
	var memuh = $(window).width()/7;
	memuh = memuh * 3.6;

	$("#memu").css("height",memuh);
	 var title = $('#memu').attr("title");
	 <!--打开-->
	 if(title == 0){
		$("#top").click();
		$('#memu').css('display',"");
		$('#memu').attr("title","1")
		$modal.modal();
	 }
	 <!--关闭-->
	 if(title == 1){
		$('#memu').css('display',"none");
		$('#memu').attr("title","0")
		$modal.modal('close');
	 }
	 <!--遮关闭时同时关闭按钮-->
	 $('#memu-modal').on('closed.modal.amui', function(){
		$('#memu').css('display',"none");
		$('#memu').attr("title","0")
		});
  }
 
 function backA(){
	 
	 Public_method.finishActivity();
 }
 
 
 function generateMenu(){
	
	 var  menu = "<div style=\"width:100%;background-color:#378dcc; display:none; z-index:9999;  position:absolute;\" id = \"memu\" title=\"0\" >" 
	 			+"<table class=\"am-table\" >"
		  		+"<tbody>"
				+"	<tr>"
				+"	<td align=\"center\"><a  href=\"javascript:gotoMenu('msg')\"> <img src=\"assets/img/msg.png\" /></br><span >信息</span></a></td>"	
				+"	<td align=\"center\"><a class=\"Pa_1_2\"  href=\"javascript:gotoMenu('mydocu')\"><img src=\"assets/img/mydocu.png\" /></br><span >我的产品库</span></a></td>"	
				+"	<td align=\"center\"><a class=\"Pa_1\"  href=\"javascript:gotoMenu('arrive')\"><img src=\"assets/img/arrive.png\" /></br><span >到空运</span></a></td>"		
				+"	<td align=\"center\"><a class=\"Pa_1\"  href=\"javascript:gotoMenu('newdocu')\"><img src=\"assets/img/newdocu.png\" /></br><span >到新柜</span></a></td>"
				+"	</tr>"
				+"	<tr> "
				+"	<td align=\"center\" style=\"border-top:0px;\"><a class=\"Pa_1_2\" href=\"javascript:gotoMenu('generalize')\"><img src=\"assets/img/generalize.png\"/></br><span >推广</span></a></td>"
				+"	<td align=\"center\" style=\"border-top:0px;\"><a class=\"Pa_1\" href=\"javascript:gotoMenu('promotion')\"><img src=\"assets/img/promotion.png\" /></br><span >促销</span></a></td>"	
				+"	<td align=\"center\" style=\"border-top:0px;\"><a href=\"javascript:gotoMenu('suggest')\"><img src=\"assets/img/suggest.png\" /></br><span >意见反馈</span></a></td>"
				+"	</tr>"
				+"</tbody>"
			+"</table>"
			+"</div>" +
					"	<div data-am-widget=\"gotop\" class=\"am-gotop am-gotop-default\" style=\"display: none;\">" +
					" <a href=\"#top\" title=\"回到顶部\" id= \"top\">" +
					" <span class=\"am-gotop-title\">回到顶部</span>" +
					" <i class=\"am-gotop-icon am-icon-chevron-up\"></i>" +
					" </a> 	</div>";
			
			$("#header").append(menu);
	 		$("#memu span").css("color","white");
	 		$("#memu span").css("font-size","12px");
	 		
	 		 
	 		
	 	
	 		 
	 		   
	 		   
	 		 
	 	
	 
 }
 
 function gotoMenu(menu1){
	 menu(); 	
	
	 Public_method.gotoMenu(menu1);
 }
 